package com.db.williamchart.data;

import com.db.williamchart.renderer.RendererConstants;

public class Scale {

    private float min;
    private float max;

    public Scale(float min, float max) {
        this.min = min;
        this.max = max;
    }

    public float getSize() {
        return max - min;
    }

    public boolean notInitialized() {
        return max == min && min == RendererConstants.notInitialized;
    }

    public float getMin() {
        return min;
    }

    public float getMax() {
        return max;
    }
}
